package org.grottarossa.template.drivers.components;

import org.grottarossa.template.drivers.DriverException;

import java.util.HashMap;

import org.grottarossa.template.data.Tree;
import org.grottarossa.template.data.pojo.discussions.Discussion;
import org.grottarossa.template.drivers.components.tokens.CaseManagementId;
import org.grottarossa.template.drivers.components.tokens.DiscussionManagementId;

public interface DiscussionManagement {

	public HashMap<String, Tree<Discussion>> getDiscussionList(CaseManagementId caseID) throws DriverException;

	public void createDiscussionItem(Discussion discussion) throws DriverException;

	public void updateDiscussionItem(Discussion discussion) throws DriverException;

	public void deleteDiscussionItem(CaseManagementId caseID, DiscussionManagementId discussionId) throws DriverException;

	public void replyDiscussionItem(CaseManagementId caseId, DiscussionManagementId fatherId,Discussion discussion) throws DriverException;

	public String getDiscussionName(CaseManagementId caseID, DiscussionManagementId discussionId) throws DriverException;

	public Discussion getDiscussionElement(CaseManagementId caseID, DiscussionManagementId discussionId) throws DriverException;


}
